
// "introduceSign": "string",
// "nickName": "string",
// "passwordMd5": "string"
import md5 from "md5";
import {ajaxFun} from "../../../utils/ajax"
Page({
  data:{
    nickName:"",
    introduceSign:"",
    passwordMd5:""
  },
  onLoad(){
    let userInfo=wx.getStorageSync('userInfo');
    this.setData({
      nickName:userInfo.nickName,
      introduceSign:userInfo.introduceSign,
    })
  },

 async editorFun(){
  let result=await ajaxFun("/user/info","put",{
    "nickName": this.data.nickName,
    "introduceSign": this.data.introduceSign,
    "passwordMd5": md5(this.data.passwordMd5)
  })
  if(result.resultCode===200){
    wx.reLaunch({
      url: '/userPackage/pages/login/login',
    })
  }
  }
})